#ifndef USER_H
#define USER_H

#include <string>
#include "PersonDatabase.h"

class User
{
public:
    User();

    enum UserType {
        INVALID = -1,
        ADMIN,
        DOCTOR,
        NURSE,
        PATIENT
    };

    UserType getUserType();

    PersonInfo * getInfo();
    int getId();

    void setInfo(PersonInfo info);
    void setUsername(QString name);
    void setUserId(int id);

protected:
    int userId;
    UserType type;

    std::string username;

    PersonInfo info;
};

#endif // USER_H
